#pragma once

#include "ISurport.h"
#include "UIUntil.h"

NAMESPACE_UI_BEGIN

class UI_API CBufferBase : public IBuffer
{
public:
	byte_t * GetLine(int_32 iY) const;
	byte_t * GetPoint(int_32 iX, int_32 iY) const;

	void SetSize(int_32 iWidth, int_32 iHeight);

	void CopyTo(IBuffer * pBuffer, const CRectInt32 & rectSrc) const;
	void CopyTo(IBuffer * pBuffer, const CPointInt32 & posDst, const CRectInt32 & rectSrc) const;
};

NAMESPACE_UI_END